<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			
			<li class="active">添加模版</li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Shoufei/mb_addPost')}">
			<fieldset>
				
				<div class="control-group">
					<label class="control-label">模版名称:</label>
					<div class="controls">
						<input type="text" name="tpname">
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">收费方式:</label>
					<div class="controls">
						<select    name="sffangshi">
                                                     <option value="1">周期性</option>
                                                     <option value="2">一次性</option> 
						</select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">收费类别:</label>
					<div class="controls">
						<select    name="sftype">
                                                   <option value="1">正常</option>
                                                     <option value="2">押金</option>   
						</select>
						<span class="form-required">*</span>
					</div>
				</div>
			
				<div class="control-group">
					<label class="control-label">计费精度:</label>
					<div class="controls">
						<select   name="jfjingdu">
                                                    <option value="1">元</option>
                                                     <option value="2">角</option>
                                                      <option value="3">分</option>  
						</select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">计费公式:</label>
					<div class="controls">
						<select    name="gsid" onchange="gs();" id="gsst">
                                                     <option selected="selected" >请选择计费公式</option>
                                                    <foreach name="res" item="v">
                                                        <option value="{$v.id}">{$v.name}</option>
                                                        
                                                    </foreach>    
                                                      
						</select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">计费单价方式:</label>
					<div class="controls">
						<select   name="jfdjfs">
                                                       <option value="1">无阶梯收费</option>  
                                                        <option value="2">阶梯收费</option>  
						</select>
                                                <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">单价:</label>
                                        <div class="controls">
                                             <input type="text" style="padding-right: 0px;margin-right: 0px;width: 150px;border-bottom-right-radius: 0px;border-top-right-radius: 0px" name="danjia" id="action">
				               <select style="color:#000;width:60px;padding-left:-5px;margin-left:-5px;height: 36px;border-bottom-left-radius: 0px;border-top-left-radius: 0px;border: 2px solid #dce4ec;border-left: none " >
                                                    <option value="元">元</option>
                                                  
						</select>
                                                <span class="form-required">*</span>
				</div>
                                        </div>
                            	<div class="control-group">
					<label class="control-label">计费周期单位:</label>
					<div class="controls">
                                            <input type="text" style="padding-right: 0px;margin-right: 0px;width: 150px;border-bottom-right-radius: 0px;border-top-right-radius: 0px" name="jfzqdanwei" id="action">
                                                <select style="color:#000;width:60px;padding-left:-5px;margin-left:-5px;height: 36px;border-bottom-left-radius: 0px;border-top-left-radius: 0px;border: 2px solid #dce4ec;border-left: none "  name="zqdanwei">
                                                    <option value="1">月</option>
                                                     <option value="2">日</option>
						</select>
                                                <span class="form-required">*</span>
					</div>
				</div>
                            	<div class="control-group">
					<label class="control-label">打印次序:</label>
					<div class="controls">
						
						<input type="text" name="dycixu" id="action">
                                                <span class="form-required">*</span>
					</div>
				</div>
                            <div class="control-group">
					<label class="control-label">滞纳金选项:</label>
					<div class="controls">
						<select style="color:#000"  name="znjxuanxiang">
                                                    <option value="1">是</option>
                                                     <option value="2">否</option>
						</select>
                                                <span class="form-required">*</span>
					</div>
				</div>
                            <input type="text" name="jfgongshi" style="display: none" id="mee" value="">
                          
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<a class="btn" href="{:U('Shoufei/shoufeimoban')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<!--<script src="__PUBLIC__/js/common.js"></script>-->
        <script>
            
            function gs(){
               var st=document.getElementById("gsst"); 
               var e= document.getElementById("mee");
                e.value=st.options[st.selectedIndex].text;
                
            }

        </script>
</body>
</html>